/*
 * @Author: kanglang
 * @Date: 2020-09-18 11:03:02
 * @LastEditors: kanglang
 * @LastEditTime: 2021-05-07 09:58:21
 * @Description:
 */

import { fetchGet, fetchPost } from '../config';
// 角色管理

export default {
  // 获取油号列表
  oilCode(params) {
    return fetchGet('oil-api/api/v1/oil/findAllOilType', params);
  },
  // 获取油站列表
  oilStaionList(params) {
    return fetchPost('oil-api/api/v1/oil/queryStationInfo', params);
  },
  // 获取最近油站信息
  closestOilStaion(params) {
    return fetchPost('oil-api/api/v1/oil/queryCloseMeStationInfo', params);
  },
  // 获取范围内油站
  oilDistanceStation(params) {
    return fetchGet('oil-api/api/v1/oil/queStation', params);
  },
  // 获取范围内油站
  queryStationInfoApp(params) {
    return fetchPost('oil-api/api/v1/oil/queryStationInfoApp', params);
  },

  // 获取虚拟油卡列表
  pageOilEmpower(params) {
    return fetchGet('energy-api/api/v1/caronwer/pageOilEmpower', params);
  },

  // 挂账车核销卡
  getAgreementOilCard(params) {
    return fetchGet('energy-api/api/v1/Verification/agreement/getAgreementOilCard', params);
  },

  // 获取虚拟油卡二维码
  getFictitiousCardQrCode(params) {
    return fetchGet('energy-api/api/v1/Verification/qccode', params);
  },

  // 挂账车核销二维码
  qccodeForAgreement(params) {
    return fetchGet('energy-api/api/v1/Verification/agreement/qccodeForAgreement', params);
  },

  // 获取虚拟油卡数据
  getAuthById(params) {
    return fetchGet('energy-api/api/v1/Verification/getAuthById', params);
  },

  // 交易记录
  pageTransaction(params) {
    return fetchGet('energy-api/api/v1/Verification/pageTransaction', params);
  },

  // 分享记录分页
  pageOwnerAuthorization(params) {
    return fetchPost('energy-api/api/v1/caronwer/pageOwnerAuthorization', params);
  },

  // 回收授权
  recycling(params) {
    return fetchGet('energy-api/api/v1/caronwer/recycling', params);
  },

  // 更具电话查询用户
  getDriverByPhone(params) {
    return fetchGet('energy-api/api/v1/caronwer/getDriverByPhone', params);
  },

  // 申请拨油
  allotApply(params) {
    return fetchPost('energy-api/api/v1/caronwer/allotApply', params);
  },

  // 车主授权
  ownerAuthorization(params) {
    return fetchPost('energy-api/api/v1/caronwer/ownerAuthorization', params);
  },

  // 查询是否核销成功
  verificationSuccess(params) {
    return fetchGet('energy-api/api/v1/Verification/verificationSuccess', params);
  },

  getVerificationResult(params) {
    return fetchGet('energy-api/api/v1/Verification/getVerificationResult', params);
  },

  // 站点油品
  stationOil(params) {
    return fetchGet('energy-api/api/v1/Verification/stationOil', params);
  },
  // 获取当前位置附近油站
  stationRord(params) {
    return fetchGet('energy-api/api/v1/Verification/stationRord', params);
  },
  // 检查商户是否有权核销
  checkUserAuth(params) {
    return fetchGet('user-api/api/v1/userAuth/checkUserAuth', params);
  },
  // 商户核销油品
  driverVerification(params) {
    return fetchPost('energy-api/api/v1/Verification/driverVerification', params);
  },
  //
  getPumpDetail(params) {
    return fetchGet('energy-api/api/v1/caronwer/getPumpDetail', params);
  },
  // 油卡订单详情
  getPumpDetailById(params) {
    return fetchGet('energy-api/api/v1/caronwer/getPumpDetailById', params);
  },
  // 查询核销码是否过期
  verificationCodeIsOverdue(params) {
    return fetchGet('energy-api/api/v1/Verification/verificationCodeIsOverdue', params);
  },
  // 提醒后端核销状态改变
  backVerification(params) {
    return fetchGet('energy-api/api/v1/Verification/backVerification', params);
  },
  // 预约详情
  getApplyDetailsInfo(params) {
    return fetchGet('user-api/api/v1/oilSinopecApply/getApplyDetailsInfo', params);
  },
  // 获取付款信息
  getApplyOrderInfo(params) {
    return fetchGet('user-api/api/v1/oilSinopecApply/getApplyOrderInfo', params);
  },
  // 小马油惠支付
  submitPay(params) {
    return fetchPost('user-api/api/v1/night/submitPay', params);
  },
  // 今日支付结果
  getPayResults(params) {
    return fetchGet('user-api/api/v1/oilSinopecApply/getPayResults', params);
  },
  // gvr油机交易列表：
  gvrPageTransaction(params) {
    return fetchGet('smms-service/api/xmgjApi/page', params);
  },

  findGvrOilRecord(params) {
    return fetchGet('energy-platform-api/api/v1/energy/platform/findGvrOilRecord', params);
  },

  // 核销列表：
  pageVerificationDetail(params) {
    return fetchGet('energy-api/api/v1/Verification/pageVerificationDetail', params);
  },

  // GVR上传交易接口
  uploadOilRecord(params) {
    return fetchPost('energy-platform-api/api/v1/energy/platform/uploadOilRecord', params);
  },

  // 修改核销车牌号：
  resetCar(params) {
    return fetchGet('energy-api/api/v1/Verification/resetCar', params);
  },

  // 分页查询附近油站
  pageSite(params) {
    return fetchGet('energy-platform-api/api/v1/energy/platform/pageSite', params);
  },

  // 核销详情
  getVerificationDetail(params) {
    return fetchGet('energy-api/api/v1/Verification/getVerificationDetail', params);
  },

  // 核销检查余额是否足够
  checkBalanceForGvr(params) {
    return fetchPost('energy-api/api/v1/Verification/checkBalanceForGvr', params);
  },

  // 核销详情
  detailOilOrder(params) {
    return fetchGet('user-api/api/v1/oilSinopecApply/detailOilOrder', params);
  },

};
